<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('member','header'); ?>
<div id="main">
  <?php include template("ask","left"); ?>
  <div id="right">
    <p id="position"><strong>当前位置：</strong><a href="<?php echo $MODULE['member']['url'];?>">会员中心</a><a href="<?php echo $M['url'];?>center.php">问吧</a><?php if($status==-1) { ?>全部提问<?php } elseif ($status==3) { ?>待解决问题<?php } elseif ($status==5) { ?>已解决问题<?php } elseif ($flag==1) { ?>投票中的问题<?php } else { ?>全部提问<?php } ?></p>
    <div class="clear"></div>
    <table cellpadding="0" cellspacing="1" class="table_list">
      <caption>提问管理</caption>
      <tr>
        <th>标题</th>
        <th width="50">回答数</th>
        <th width="50">状态</th>
        <th width="50">点击数</th>
        <th width="110">提问时间</th>
        <th width="50">编辑</th>
      </tr>
<?php if(is_array($infos)) foreach($infos AS $info) { ?>
<tr>
<td class="align_left">
<?php if($info['reward']) { ?><span style="color:orange;"><img src="images/icon_credit.gif" width="12" height="11"><?php echo $info['reward'];?> </span><?php } ?>
<a href="<?php echo ask_url($info[askid]);?>" target="<?php echo $target;?>" title="<?php echo $info['title'];?>"><?php echo str_cut($info[title], 72, '..');?></a> <a href="<?php echo $CATEGORY[$info['catid']]['url'];?>" style="color:gray">[<?php echo $CATEGORY[$info['catid']]['catname'];?>]</a>
</td>
<td><?php echo $info['answercount'];?></td>
<td><?php if($info[status]==3) { ?><font color=#009900>待解决</font><?php } elseif ($info[status]==5) { ?><font color=#FF9900>已解决</font><?php } else { ?><font color=#BCBCBC>已关闭</font><?php } ?></td>
<td><?php echo $info['hits'];?></td>
<td><?php echo date('Y-m-d H:i',$info[addtime]);?></td>
<td><?php if($info[status]==3) { ?><a href="<?php echo $M['url'];?>center.php?action=edit&job=ask&id=<?php echo $info['askid'];?>"><img src="<?php echo $M['url'];?>images/edit.gif" alt="编辑" width="16" height="16" /></a><?php } else { ?><img src="<?php echo $M['url'];?>images/edit.gif" width="16" height="16" /></a><?php } ?></td>
</tr>
<?php } ?>
    </table>
    <div id="pages"><?php echo $pages;?></div>
    <table cellpadding="0" cellspacing="1" class="table_info">
      <caption>
      提示信息
      </caption>
      <tr>
        <td> 为了让您的提问被更多人关注，以获得最佳的回答，您可以追加悬赏
<br/>
        </td>
      </tr>
    </table>
  </div>
</div>
<div class="clear"></div>
<?php include template('phpcms','footer'); ?>